﻿@model IEnumerable<TCM.SUBJECTLEVELBASE>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table style="width:99%">
    <tr> 
        <th>
            @Html.DisplayNameFor(model => model.NAME)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NAMEAR)
        </th>
      
        <th>
            Subject
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.NAME)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NAMEAR)
        </td>
        
        <td>
            @Html.DisplayFor(modelItem => item.SUBJECTBASE.NAME)
        </td>
       
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id=item.SUBJECTLEVELID }) |
            @Html.ActionLink("Details", "Details", new { id=item.SUBJECTLEVELID}) |
            @Html.ActionLink("Delete", "Delete", new { id=item.SUBJECTLEVELID})
        </td>
    </tr>
}

</table>
